<!DOCTYPE html>
<html>
	<body>
		<h1>JavaScript 数组</h1>
		<p id="demo"></p>
	</body>

	<script>
		const fruits = [{
			pk_tank_id: 1,
			tank_addr: '00',
			enable: true,
			tank_type: 0
		}, {
			pk_tank_id: 1,
			tank_addr: '00',
			enable: true,
			tank_type: 0
		}, {
			pk_tank_id: 1,
			tank_addr: '00',
			enable: true,
			tank_type: 0
		}, ];
		var obj = {
			pk_tank_id: 1,
			tank_addr: '00',
			enable: true,
			tank_type: 0
		};
		fruits.push(obj);
		fruits.push(obj);
		fruits.push(obj);

		console.log(fruits);
		console.log(fruits.length);
		console.log(fruits[0]);
	</script>
</html>
